<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/menu::head"></head>
<body>
<span th:replace="common/menu::menu"></span>
    <div>
        welcome to ogame assist !
    </div>
    <div>
        <form>
            <input type="button" value="flash star" onclick="flashStar()">
        </form>
    </div>

    <script>
        var http = new XMLHttpRequest();
        xmlHttp.setRequestHeader("content-type", "application/x-www-form-urlencoded");

        function flashStar() {
            http.open('get', '/home/flash/star', true);
            http.send();
        }
    </script>
</body>
</html>